﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserAddrEdit.aspx.cs" Inherits="Maticsoft.Web.UserAddrEdit" %>

<%@ Register Src="Header2.ascx" TagName="Header2" TagPrefix="uc1" %>
<%@ Register Src="footer.ascx" TagName="footer" TagPrefix="uc2" %>
<%@ Register Src="UserLeft.ascx" TagName="UserLeft" TagPrefix="uc3" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>会员中心</title>
    <link rel="stylesheet" href="css/reset.css" />
    <link rel="stylesheet" href="css/common.css" />
    <script src="js/jquery-1.8.2.js" type="text/javascript"></script>
    <script src="js/global.js" type="text/javascript"></script>
    <script type="text/javascript">
        function Chk() {
            if ($("txtName").val() == "") {
                alert("请填写姓名");
                return false;
            }
            if ($("#txtMobile").val() == "") {
                alert("请填写手机号");
                return false;
            }
            else if (!/^(13[0-9]|14[0-9]|15[0-9]|18[0-9])\d{8}$/i.test($("#txtMobile").val())) {
                alert("手机号格式错误");
                return false;
            }
            if ($("#txtPostCode").val() == "") {
                alert("请输入邮编");
                return false;
            }
            else if (!/^\d{6}$/i.test($("#txtPostCode").val())) {
                alert("邮编格式错误");
                return false;
            }
            if ($("#ddlCity").val() == "-1") {
                alert("请选择地区");
                return false;
            }
            if ($("#txtAddress").val() == "") {
                alert("请填写详细地址");
                return false;
            }
            if ($("#txtIdentityNo").val() == "") {
                alert("请填写身份证号");
                return false;
            }
            else if (!IdCardValidate($("#txtIdentityNo").val())) {
                alert("请输入正确的身份证号");
                return false;
            }
            return true;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <uc1:Header2 ID="Header21" runat="server" />
    <div class="row bg-gray" style="padding: 20px 0;">
        <div class="safe_width">
            <uc3:UserLeft ID="UserLeft1" runat="server" />
            <div class="right-cont">
                <div class="men-cen-tit mar-btm-10">
                    <a href="JavaScript:void(0);">编辑地址</a>
                </div>
                <div class="row">
                    <ul class="equal-3 perf-infor">
                        <li>
                            <p>
                                姓名：</p>
                            <div>
                                <asp:TextBox ID="txtName" runat="server"></asp:TextBox>
                                </div>
                        </li>
                        <li>
                            <p>
                                手机：</p>
                            <div>
                                <asp:TextBox ID="txtMobile" runat="server"></asp:TextBox>
                                </div>
                        </li>
                        <li>
                            <p>
                                地区：</p>
                            <div>
                                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                <ContentTemplate>
                                <asp:DropDownList ID="ddlProvince" style="width:40%" runat="server" OnSelectedIndexChanged="ddlProvince_SelectedIndexChanged"
                                    AutoPostBack="true">
                                    <asp:ListItem Value="-1" Text="选择省"></asp:ListItem>
                                </asp:DropDownList>
                                <asp:DropDownList ID="ddlCity" runat="server" style="width:40%">
                                    <asp:ListItem Value="-1" Text="选择市"></asp:ListItem>
                                </asp:DropDownList>
                                </ContentTemplate>
                                </asp:UpdatePanel>
                                </div>
                        </li>
                        <li>
                            <p>
                                详细地址：</p>
                            <div>
                                <asp:TextBox ID="txtAddress" runat="server" style="width:400px;"></asp:TextBox>
                                </div>
                        </li>
                        <li>
                            <p>
                                邮编：</p>
                            <div>
                                <asp:TextBox ID="txtPostCode" runat="server"></asp:TextBox>
                                </div>
                        </li>
                        <li>
                            <p>
                                默认地址：</p>
                            <div>
                                <asp:CheckBox ID="cbMain" runat="server" />
                                </div>
                        </li>
                        <li>
                            <p>
                                身份证号：</p>
                            <div>
                                <asp:TextBox ID="txtIdentityNo" runat="server" Width="200px"></asp:TextBox>
                                </div>
                        </li>
                        <li>
                            <p>
                                身份证正面：</p>
                            <div>
                                <input id="fileFront" runat="server" type="file" />
                                </div>
                        </li>
                        <li>
                        <p></p><div style="height:130px;">
                            <asp:Image ID="imgFront" ImageUrl="~/img/shenfenzheng.jpg" runat="server" Width="200px" /></div>
                        </li>
                        <li>
                            <p>
                                身份证反面：</p>
                            <div>
                                <input id="fileBack" runat="server" type="file" />
                                </div>
                        </li>
                        <li>
                        <p></p><div style="height:130px;"><asp:Image ID="imgBack" ImageUrl="~/img/shenfenfan.jpg" runat="server" Width="200px" /></div>
                        </li>
                        <li>
                            <p>
                            </p>
                            <div class="fs-12 tc-gray">
                                <asp:Button ID="btnSave" runat="server" Text="保存" OnClick="btnSave_Click" OnClientClick="return Chk();" Style="height: 38px;
                                    line-height: 38px; border: 1px solid #E4393C; background-color: #E4393C; padding: 0 18px;
                                    color: #FFFFFF; font-size: 16px;" />
                            </div>
                        </li>
                        <li>
                            <p>
                                注意：</p>
                            <div style="color:Red;height:60px;font-size:12px;line-height:20px">
                                为了积极配合海关清关，新西兰仓等海外仓订单身份证正反面上传项目为必选，国内仓目前仅需要填写身份证号即可，请务必保证收件人姓名和身份证号码、身份证上传信息一致
                                </div>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <uc2:footer ID="footer1" runat="server" />
    </form>
</body>
</html>
